perm filename ASS12.TEX[ARK,TEX] blob
sn#766886 filedate 1984-08-24 generic text, type C, neo UTF8
COMMENT ā VALID 00002 PAGES
C REC PAGE DESCRIPTION
C00001 00001
C00002 00002 \centerline{\bf Assignment 12 for Lecture 17}
C00006 ENDMK
Cā;
\centerline{\bf Assignment 12 for Lecture 17}
Typeset the following.
\medskip
{\obeylines
In Xanadu did Kubla Khan
A stately pleasure dome decree,
Where Alph the sacred river ran,
Through caverns measureless to man,
Down to a sunless sea.
}
\hbox to 3in{\hss(Samuel Taylor Coleridge)}
\medskip
{\leftskip=20pt plus 1fil\rightskip=30pt plus 1fil\obeylines
When the kitchen boiler burst,
Father simply sat and cursed,
Mother, with a kinder feeling,
Wiped the housemaid off the ceiling.\par}
\hbox to 4in{\hss(Anon.)}
\def\blackslug{\hbox{\hskip 1pt \vrule width 4pt height 6pt depth 1.5pt
\hskip 1pt}}
\def\qed{{\parfillskip=0pt\hfil\blackslug\par\medskip}}
\hangindent=20pt\noindent {\sl Theorem.} We can typeset theorems.\hfill\break
When you have a theorem, you place a black slug (\blackslug) flush right on the
last line of the last paragraph containing the theorem.
This is the modern equivalent of ``Q.E.D.''
To be self-referential, we will prove that we can put out the black slug.\qed
\medskip
{\leftskip=0pt plus 50pt\rightskip=0pt plus 25pt\noindent
Watch how this paragraph is typeset.
Notice how the lines are placed.
Notice how it is ragged on both sides,
yet it is curiously centered.
How does one accomplish this strange feat,
especially so early in the morning?
And does the same method work late at night?
There is only one way to find out: try it now, and try
it again when you return home!
\par}
\medskip
\hangindent=10pt\noindent\hbox to 10pt{1.\hfil}This is item 1.
See how it continues onto the second line if you type enough?
The text is indented 10 points from the left margin and the first
words line up.
\hangindent=10pt\noindent\hbox to 10pt{2.\hfil}This is item 2.
\hangindent=20pt\noindent\hbox to 20pt{\hskip10pt{\sl a}.\hfil}This is item 2a.
\hangindent=20pt\noindent\hbox to 20pt{\hskip10pt{\sl b}.\hfil}This is item 2b.
To see what happens, we have written a lot of text.
Is that enough text yet to go onto two lines?
It should be.
\hangindent=10pt\noindent\hbox to 10pt{3.\hfil}This is item 3.
\bye